package com.yfbao.horizon.shardingtable.injection.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfbao.horizon.shardingtable.injection.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where 1=1 and name like CONCAT('%',#{nameKey},'%')")
    List<User> getUserListByLikeName(String nameKey);
}
